package com.lottery.game.core.modules.service.game.impl;

import com.lottery.game.common.base.service.impl.AbstractBaseServiceImpl;
import com.lottery.game.core.modules.entity.game.GameGame;
import com.lottery.game.core.modules.mapper.v2.GameGameMapper;
import com.lottery.game.core.modules.service.game.GameGameService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("gameGameService")
public class GameGameServiceImpl extends AbstractBaseServiceImpl<GameGame> implements GameGameService {

    @Autowired
    private GameGameMapper gameGameMapper;

    @Override
    public GameGame findLastGameIssueByTicketId(Integer ticket) {
        return gameGameMapper.findLastGameIssueByTicketId(ticket);
    }

    @Override
    public GameGame findLastGameIssueByIsNotNullParam(GameGame gameGame) {
        return gameGameMapper.findLastGameIssueByIsNotNullParam(gameGame);
    }
}
